﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Pay.Admin.Extension
{
    public static class HtmlHelperExtension
    {
        /// <summary>
        /// api地址
        /// </summary>
        /// <param name="html"></param>
        /// <returns></returns>
        public static MvcHtmlString ApiHost(this HtmlHelper html)
        {
            var address = ConfigurationManager.AppSettings["api:address"];
            return new MvcHtmlString(address);
        }
    }
}